export interface FileRO {
    fileType: FileType;

    multipartFiles: Blob[];

    uploadType: UploadType;

    /*上传类型*/
    uploadPermissions?: UploadPermissions;

    /*过期时间*/
    expirationDate?: number;
}

export enum FileType {
    OTHER = 'OTHER',
    USER_AVATAR = 'USER_AVATAR',
    SHOW = 'SHOW',
    CONTENT_IMG = 'CONTENT_IMG',
    COMMENT_IMG = 'COMMENT_IMG'
}

export enum UploadType {
    LOCAL = 'LOCAL',
    MINIO = 'MINIO'
}

export enum UploadPermissions {
    PUBLIC,
    PRIVATE
}

export interface FileVO {
    fileIds: string[];
    tokenUrls: string[];
}

export const loadFileUrl = import.meta.env.VITE_BASE_URL + "/file/loadFileId?fileId="
